package rz.timer;

import java.util.Date;
import java.util.TimerTask;

public class TestTimerTask2 extends TimerTask {

	@Override
	public void run() {
		System.out.println("TimerTask2时间到了,打印一个Hello World!");
		try {
			Thread.sleep(20000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.out.println("TimerTask2 "+new Date());
	}

}
